From: Florian Müllner Date: Sun, 10 Aug 2025 13:44:13 +0000 (+0200) Subject: environment: Mock more DesktopAppInfo methods X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~104^2^2~87 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b594af2d20c15b223d5f10dc60e286e1ba35227;p=gnome-shell.git environment: Mock more DesktopAppInfo methods Commit ac113accf1e0927 didn't mock all DesktopAppInfo methods used by gnome-shell, and https://gitlab.gnome.org/GNOME/glib/-/issues/3744 still hasn't been fixed. Add the methods that are needed for the AppMenu, which hopefully are all the remaining DesktopAppInfo methods we are using. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8587 Part-of: --- diff --git a/js/ui/environment.js b/js/ui/environment.js index bbbdf1d31..a008a372c 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -347,9 +347,21 @@ if (!GioUnix.DesktopAppInfo.prototype.has_key) { return GioUnix.DesktopAppInfo.has_key(this, key); }; + GioUnix.DesktopAppInfo.prototype.get_boolean = function (key) { + return GioUnix.DesktopAppInfo.get_boolean(this, key); + }; + GioUnix.DesktopAppInfo.prototype.get_categories = function () { return GioUnix.DesktopAppInfo.get_categories(this); }; + + GioUnix.DesktopAppInfo.prototype.list_actions = function () { + return GioUnix.DesktopAppInfo.list_actions(this); + }; + + GioUnix.DesktopAppInfo.prototype.get_action_name = function (name) { + return GioUnix.DesktopAppInfo.get_action_name(this, name); + }; } const slowdownEnv = GLib.getenv('GNOME_SHELL_SLOWDOWN_FACTOR');